home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 14243 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: keats.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Connecting a process to a tty
  5. Date: 12 Apr 1996 11:38:41 -0700
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4km7vhINNa9@keats.ugrad.cs.ubc.ca>
  8. References: <slrn44mrp31.ekr.sandforr@mcnet.marietta.edu>
  9. NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
  10.  
  11. In article <slrn44mrp31.ekr.sandforr@mcnet.marietta.edu>,
  12. Robert Sandford <sandforr@mcnet.marietta.edu> wrote:
  13.  > programs that use pseudo-ttys. I can disconnect a process from a tty by using ioctl
  14.  > function but I am stumped on connecting or reconnecting a process back to a tty.
  15.  >
  16.  >  Any help would be greatly appreciated.
  17.  
  18. I'd love to help, but the discussion would bore to tears all the non-UNIX
  19. people who read comp.lang.c.
  20.  
  21. Read Stevens to find out how to open a master and slave tty. Or just get the
  22. sources for a telnet daemon and make adjustments to suit your application.
  23. There is more to the problem than just opening pseudo terminals---you also must
  24. support, at the slave driver, the Virtual Terminal Protocol used by telnet.
  25. This protocol has ways to negotiate line/character echo/noecho mode at the
  26. user's side, ways to transmit a change of window size, etc.
  27. -- 
  28.  
  29.